home *** CD-ROM | disk | FTP | other *** search
- *** ../gcc-diff-2.0/cccp.c Fri Mar 6 15:18:06 1992
- --- cccp.c Sun Mar 8 11:55:45 1992
- ***************
- *** 1503,1547 ****
-
- done_initializing = 1;
-
- - #if (defined(atarist) || defined(CROSSATARI) || defined(atariminix))
- - for(i = 0; i < 4; i++)
- - #endif
- { /* read the appropriate environment variable and if it exists
- replace include_defaults with the listed path. */
- char *epath = 0;
- #if (defined(atarist) || defined(CROSSATARI) || defined(atariminix))
- ! switch(i)
- {
- case 0:
- ! epath = getenv("GNUINC");
- break;
- -
- case 1:
- ! epath = getenv("GNULIB");
- break;
- -
- case 2:
- ! if(cplusplus) epath = getenv("GXXINC"); else epath = 0;
- break;
- -
- case 3:
- ! #endif
- ! switch ((objc << 1) + cplusplus)
- ! {
- ! case 0:
- ! epath = getenv ("C_INCLUDE_PATH");
- ! break;
- ! case 1:
- ! epath = getenv ("C++_INCLUDE_PATH");
- ! break;
- ! case 2:
- ! epath = getenv ("OBJC_INCLUDE_PATH");
- ! break;
- ! case 3:
- ! epath = getenv ("OBJC++_INCLUDE_PATH");
- ! break;
- ! }
- ! #if (defined(atarist) || defined(CROSSATARI) || defined(atariminix))
- }
- #endif
-
- --- 1503,1553 ----
-
- done_initializing = 1;
-
- { /* read the appropriate environment variable and if it exists
- replace include_defaults with the listed path. */
- char *epath = 0;
- #if (defined(atarist) || defined(CROSSATARI) || defined(atariminix))
- ! char *e1 = getenv("GNUINC"), *e2 = getenv("GNULIB"),
- ! *e3 = getenv("GXXINC");
- !
- ! if(cplusplus)
- ! {
- ! if(e3)
- ! epath = strcpy(alloca(strlen(e3)+1), e3);
- ! }
- ! if(e1)
- ! {
- ! if(epath)
- ! epath = strcat(
- ! strcat(strcpy(alloca(strlen(epath)+strlen(e1)+2), epath), ","),
- ! e1);
- ! else
- ! epath = strcpy(alloca(strlen(e1)+1), e1);
- ! }
- ! if(e2)
- ! {
- ! if(epath)
- ! epath = strcat(
- ! strcat(strcpy(alloca(strlen(epath)+strlen(e2)+2), epath), ","),
- ! e2);
- ! else
- ! epath = strcpy(alloca(strlen(e2)+1), e2);
- ! }
- ! #else
- ! switch ((objc << 1) + cplusplus)
- {
- case 0:
- ! epath = getenv ("C_INCLUDE_PATH");
- break;
- case 1:
- ! epath = getenv ("C++_INCLUDE_PATH");
- break;
- case 2:
- ! epath = getenv ("OBJC_INCLUDE_PATH");
- break;
- case 3:
- ! epath = getenv ("OBJC++_INCLUDE_PATH");
- ! break;
- }
- #endif
-
- ***************
- *** 1579,1589 ****
-
- max_include_len = MAX (max_include_len, endp-startp+2);
- include_defaults[num_dirs].fname = savestring (nstore);
- - #if (defined(atarist) || defined(CROSSATARI) || defined(atariminix))
- - include_defaults[num_dirs].cplusplus = (i > 1) ? cplusplus : 0;
- - #else
- include_defaults[num_dirs].cplusplus = cplusplus;
- - #endif
- num_dirs++;
- if (*endp == '\0')
- break;
- --- 1585,1591 ----
- *** cp-dem.c.orig Sun Mar 8 12:08:33 1992
- --- cp-dem.c Sun Mar 8 12:10:35 1992
- ***************
- *** 165,170 ****
- --- 165,171 ----
- "compound", ",", /* old */
- "cm", ",", /* ansi */
- "nop", "", /* old (for operator=) */
- + "as", "=", /* ansi */
- };
-
- /* Beware: these aren't '\0' terminated. */
-